# 写一个程序，判断给定年份是否为闰年


def func():
    year = input("请输入一个年份：")
    while not year.isdigit():
        year = input("您的输入有误，请重新输入一个整数：")
    format_year = int(year)
    if format_year/400 == int(format_year/400):
        print(year + "是闰年")
    else:
        if(format_year/4 == int(format_year/4)) and (format_year/100 != int(format_year/100)):
            print(year + "是闰年")
        else:
            print(year + "不是闰年")


if __name__ == "__main__":
    func()